package com.design.flyweight.game;

public class FlyweightDemo {
    public static void main(String[] args) {
        Player player1 = new Player("Alice");
        Player player2 = new Player("Bob");

        // 玩家Alice装备武器
        player1.equipWeapon("Sword");
        player1.equipArmor("Leather Armor");

        // 玩家Bob装备武器
        player2.equipWeapon("Sword");
        player2.equipArmor("Chain Mail");
    }
}
